package com.hk.mybatis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

/**
 * @author miaoj
 */
@Setter
@Getter
@ToString
@Accessors(chain = true)
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class IdEntity<ID extends Serializable> implements Serializable {

    private static final long serialVersionUID = 2839143932923785935L;

    @TableId(type = IdType.ASSIGN_UUID)
    private ID id;
}
